12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHR00500.xrw
- * 설 명 : 종합건진 종합판정관리
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.10.01
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>종합판정관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <judgdetl>
- <rsltlst>
- <item>
- <testnm/>
- <rslt1/>
- <judgrsltcnts1/>
- <rslt2/>
- <judgrsltcnts2/>
- <rslt3/>
- <judgrsltcnts3/>
- <rsltunit/>
- <stndval/>
- <testcd/>
- <execprcpuniqno/>
- <prcpdd/>
- </item>
- <itemtext>
- <testnm/>
- <testcd/>
- <rslt1/>
- <rslt2/>
- <rslt3/>
- <execprcpuniqno/>
- <prcpdd/>
- </itemtext>
- <rslttextinfo>
- <rslt1/>
- <rslt2/>
- <rslt3/>
- <orddd1/>
- <orddd2/>
- <orddd3/>
- </rslttextinfo>
- <itemorddd>
- <orddd1/>
- <orddd2/>
- <orddd3/>
- <hopedd1/>
- <hopedd2/>
- <hopedd3/>
- </itemorddd>
- </rsltlst>
- <judginfo>
- <judg>
- <judg1>
- <judgflag/>
- <judgcntsa/>
- <judgcntsb/>
- </judg1>
- <judg2>
- <judgflag/>
- <judgcntsa/>
- <judgcntsb/>
- </judg2>
- <judgchest>
- <judgchestflag/>
- <judgchestflag2/>
- </judgchest>
- <judgdd/>
- <judgdrid/>
- <judgdept/>
- </judg>
- <medinqr>
- <judginqrnm/>
- <judgrsltcnts/>
- <judgremcnts/>
- <judginqrflag/>
- <judginqrcd/>
- <judgrsltcd/>
- <answcdflag/>
- <stat/>
- <lrgrsltyn/>
- </medinqr>
- <judginqr>
- <judginqrnm/>
- <judgrsltcnts/>
- <judgremcnts/>
- <judginqrflag/>
- <judginqrcd/>
- <judgrsltcd/>
- <answcdflag/>
- <stat/>
- <lrgrsltyn/>
- </judginqr>
- <apntinqr>
- <judginqrnm/>
- <judgrsltcnts/>
- <judgremcnts/>
- <judginqrflag/>
- <judginqrcd/>
- <judgrsltcd/>
- <answcdflag/>
- <stat/>
- <lrgrsltyn/>
- </apntinqr>
- <answ>
- <judginqr/>
- <answcd/>
- <answcnts/>
- </answ>
- </judginfo>
- <medinfo>
- <item>
- <meddd/>
- <meddrid/>
- <medtm/>
- </item>
- <past>
- <medinqrnm/>
- <medrsltcnts/>
- <medremcnts/>
- <medinqrflag/>
- <medinqrcd/>
- <medrsltcd/>
- <answcdflag/>
- <stat/>
- </past>
- <body>
- <medinqrnm/>
- <medrsltcnts/>
- <medremcnts/>
- <medinqrflag/>
- <medinqrcd/>
- <medrsltcd/>
- <answcdflag/>
- <stat/>
- </body>
- <socl>
- <medinqrnm/>
- <medrsltcnts/>
- <medremcnts/>
- <medinqrflag/>
- <medinqrcd/>
- <medrsltcd/>
- <answcdflag/>
- <stat/>
- </socl>
- <famy>
- <medinqrnm/>
- <medrsltcnts/>
- <medremcnts/>
- <medinqrflag/>
- <medinqrcd/>
- <medrsltcd/>
- <answcdflag/>
- <stat/>
- </famy>
- </medinfo>
- </judgdetl>
- <judgpatlst>
- <item>
- <statflag/>
- <hopedd/>
- <hngnm/>
- <engnm/>
- <pid/>
- <visano/>
- <sex/>
- <age/>
- <pkgnm/>
- <pkgcd/>
- <acptremcnts/>
- <rsrvdd/>
- <rsrvno/>
- <cretno/>
- <brthareacnts/>
- <orddd/>
- <rsrvtm/>
- <rgstno1/>
- <rgstno2/>
- <healexamflag/>
- <healexamdetlflag/>
- <judgdd/>
- <judgdrid/>
- <judgdd2/>
- <judgdrid2/>
- <judgstat/>
- </item>
- </judgpatlst>
- <prntinfo>
- <prnt>
- <etc/>
- <phil/>
- <pat/>
- </prnt>
- </prntinfo>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchjudgdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchorddd/>
- <srchpnm/>
- <srchrsrvdd/>
- <srchrsrvno/>
- <srchinstcd/>
- <srchstatflag/>
- <srchcretno/>
- <iemr/>
- <savedata>
- </savedata>
- <inqrflag/>
- </send>
- <init>
- <baseinfo>
- <choiflaglst/>
- <rslttypelst/>
- <plceflag/>
- <rsltcnstflaglst/>
- <pamcdlst>
- <uncocdlst/>
- <disccdlst/>
- </pamcdlst>
- <inqrflag/>
- <statlst/>
- <hedetlflaglst>
- <item/>
- </hedetlflaglst>
- <chedetlflaglst/>
- <ghedetlflaglst/>
- <meddrlst>
- <itemdr/>
- </meddrlst>
- <judgdrlst>
- <itemdr/>
- </judgdrlst>
- <fstjudglst/>
- <sendjudglst/>
- <chestjudglst/>
- <initaddrinfo/>
- <printinfolist>
- </printinfolist>
- </baseinfo>
- <send>
- <srchhealexamdetlflag/>
- <srchjudgdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchpnm/>
- <srchhealexamdetlflag2/>
- <srchrsrvdd/>
- <srchstatflag>1</srchstatflag>
- <srchpid2/>
- <srchpnm2/>
- <srchsex/>
- <srchage/>
- <srchpkgnm/>
- <info/>
- <item2>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <pkgcd/>
- <pkgnm/>
- <hopedd/>
- <rsrvdd/>
- <rsrvno/>
- <healexamflag/>
- <healexamdetlflag/>
- <orddd/>
- <cretno/>
- <brthareacnts/>
- <medseq/>
- <meddd/>
- <meddrid/>
- <medtm/>
- <remedyn/>
- <execflag/>
- <histyn/>
- <remcnts/>
- </item2>
- </send>
- <drlst>
- <itemdr/>
- </drlst>
- </init>
- <hidden>
- <answlst>
- <item/>
- </answlst>
- <count/>
- <signinfo>
- <img>
- <signdata/>
- </img>
- </signinfo>
- </hidden>
- <temp>
- <okflag/>
- <histlst>
- <item>
- <histinfo/>
- <rsrvdd/>
- <rsrvno/>
- </item>
- </histlst>
- <judgdetl>
- <judginfo/>
- </judgdetl>
- <patinfo>
- <item/>
- </patinfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if( checkOpener() ){
- var sFlag = opener.javascript.getParameter("SMAHA04410_PARAM1");
-
- if(sFlag == "") {
- m_vHealexamflag = "G"
- m_vHealexamdetlflag = "G02"
- }else {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag;
- }
-
- var sPid = opener.javascript.getParameter("SMAHA04410_PARAM2");
- if( sPid != "" ){
- btn_judg.selected = true;
- model.setValue( ipt_srchpid2.attribute("ref"), sPid);
- if( checkAuth("R") ) {
- //건진자 정보 조회
- fGetPatinfoWithPid(sPid);
- }
- }
- var sOrdDD = opener.javascript.getParameter("SMAHA04410_PARAM3");
- var sCretno = opener.javascript.getParameter("SMAHA04410_PARAM4");
-
- var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
- var nodelist = instance1.selectNodes(sNd);
- for(var i=0; i < nodelist.length; i++) {
- var desPid = nodelist.item(i).pid.text;
- var desOrd = nodelist.item(i).orddd.text;
- var desCretno = nodelist.item(i).cretno.text;
- if(desPid == sPid && desOrd == sOrdDD && desCretno == sCretno) {
-
- copyNodesetType("/root/init/send/info" , sNd + "[" + (i + 1) + "]" , "replace");
- model.setValue(cmb_srchrsrvdd.attribute("ref") ,nodelist.item(i).rsrvdd.text);
- fGetJudgDetlInfo( nodelist.item(i).rsrvdd.text
- , nodelist.item(i).rsrvno.text
- , nodelist.item(i).pkgnm.text
- , sPid, sOrdDD , sCretno );
- break;
- }
- }
- model.toggle("case_judg");
- model.toggle("case_prnt");
- btn_judgtab1.dispatch("onclick");
- }
-
- fGetBasicCdList();
- fSetJudgDr(); // 판정의 셋팅
- fSrchInit();
-
- addComboItem("cmb_meddr","--진찰의--","","above");
- addComboItem("cmb_judgdr","--판정의--","","above");
- cmb_meddr.select(0);
-
- btn_search.disabled = !checkAuth("R");
- btn_search2.disabled = !checkAuth("R");
- btn_clear.disabled = !checkAuth("X");
-
- model.toggle("case_hng");
- if( checkAuth("R") ) {
- fGetJudgPatList();
- }
- // 환자정보 삭제 common.js
- delPatientInfos();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
- <submission id="TRAHA04016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
- <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
- <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TRAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
- <submission id="TRAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
- <submission id="TRAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
- <submission id="TRAHA04413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
- <submission id="TRAHA04414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/medinfo"/>
- <submission id="TRAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
- <submission id="TRAHA04416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
- <submission id="TRAHA04418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" resultref="/root/main/prntinfo/prnt"/>
- <submission id="TRAHA03174" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/signinfo"/>
- <submission id="TXAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
- <submission id="TXAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
- <submission id="TXAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/hidden/count"/>
- <submission id="TRAHA03133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drlst"/>
- <submission id="TXAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/temp/medinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
- var m_vHealexamstatflag = "";
-
- var col_hngnm = grd_judgpatlst.colRef("hngnm");
- var col_engnm = grd_judgpatlst.colRef("engnm");
- var col_pid = grd_judgpatlst.colRef("pid");
- var col_sex = grd_judgpatlst.colRef("sex");
- var col_age = grd_judgpatlst.colRef("age");
- var col_stat = grd_judgpatlst.colRef("statflag");
- var col_ordtm = grd_judgpatlst.colRef("ordtm");
- var col_orddd = grd_judgpatlst.colRef("orddd");
- var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
- var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
- var col_cmpycd= grd_judgpatlst.colRef("cmpycd");
- var col_cmpynm= grd_judgpatlst.colRef("cmpynm");
- var col_hopedd = grd_judgpatlst.colRef("hopedd");
- var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
- var col_judgdd = grd_judgpatlst.colRef("judgdd");
- var col_judgtm = grd_judgpatlst.colRef("judgtm");
- var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
- var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
- var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
- var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
- var col_cretno = grd_judgpatlst.colRef("cretno");
- var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
- var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
-
-
- /**===================================================================================
- *초기화
- * bDetl => true : 건진자별 상세내역만 초기화
- =====================================================================================*/
- function fInit(bDetl){
- model.removeNodeset(grd_rsltlst.nodeset);
- model.removeNodeset(grd_rslttextlst.nodeset);
- // model.removeNodeset(grd_medpast.nodeset);
- // model.removeNodeset(grd_medbody.nodeset);
- // model.removeNodeset(grd_medsocl.nodeset);
- // model.removeNodeset(grd_medfamy.nodeset);
-
- model.resetInstanceNode(grd_judginqrlst.nodeset);
- model.resetInstanceNode("/root/main/judgdetl/medinfo/item");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judg");
- model.resetInstanceNode("/root/main/judgdetl/rsltlst/rslttextinfo");
- model.resetInstanceNode("/root/main/judgdetl/rsltlst/itemorddd");
- model.resetInstanceNode("/root/init/send/info");
- model.resetInstanceNode("/root/temp/histlst/item");
-
- model.setValue("/root/init/send/srchhealexamdetlflag2" ,"");
- model.setValue("/root/init/send/srchrsrvdd" ,"");
- model.setValue("/root/init/send/srchpid2" ,"");
- model.setValue("/root/init/send/srchpnm2" ,"");
- model.setValue("/root/init/send/srchsex" ,"");
- model.setValue("/root/init/send/srchage" ,"");
- model.setValue("/root/init/send/srchpkgnm" ,"");
-
- var cur_date = getCurrentDate();
- model.makeValue(ipt_judgdd.attribute("ref") , cur_date);
- model.makeValue(ipt_meddd.attribute("ref") , cur_date);
- if( bDetl) {
- model.refresh();
- return false;
- }
- model.removeNodeset(grd_judgpatlst.nodeset);
- model.refresh();
- }
-
- /**===================================================================================
- ** 조회조건 초기화
- =====================================================================================*/
- function fSrchInit(){
- cmb_srchhealexamdetlflag.refresh();
- cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag;
-
- cmb_srchhealexamdetlflag2.refresh();
- cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
-
- var cur_date = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
- model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
-
- }
-
- /**===================================================================================
- *기본코드 내역 가져오기
- =====================================================================================*/
- function fGetBasicCdList(){
- if(!checkOpener() ){
- model.toggle("case_pat");
- btn_patlst.selected= true;
-
- if( m_vHealexamflag == "" ) {
- var sFlag = getScreenMenuParameter();
-
- if(sFlag == "") {
- m_vHealexamflag = "G"
- m_vHealexamdetlflag = "G02"
- }else {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag.substr(0,3);
- if (sFlag.length > 3) {
- m_vHealexamstatflag = sFlag.substr(3,1);
- }
- }
- }
- }
- openLoadingBar("기초정보 "); //처리중 화면을 오픈한다.
-
- zbcfGetCodeList( new Array("A0069","A0070", "A0066","A0110","A0106", "A0107", "A0123")
- , new Array( "/root/init/baseinfo/chedetlflaglst"
- ,"/root/init/baseinfo/ghedetlflaglst"
- , "/root/init/baseinfo/rslttypelst"
- , "/root/init/baseinfo/plceflag"
- , "/root/init/baseinfo/inqrflag"
- , "/root/init/baseinfo/statlst"
- , "/root/init/baseinfo/rsltcnstflaglst" ) );
- submit("TRZBC00101");
-
- healGetCodeList( new Array("V005","V006","V007","R001")
- , new Array("/root/init/baseinfo/fstjudglst"
- ,"/root/init/baseinfo/sendjudglst"
- ,"/root/init/baseinfo/chestjudglst"
- ,"/root/init/baseinfo/initaddrinfo") );
-
- healGetCodeListSubmit( new Array("R002")
- , new Array("/root/init/baseinfo/printinfolist"), false);
-
- model.removeNodeset("/root/init/baseinfo/fstjudglst/V005[1]");
- model.removeNodeset("/root/init/baseinfo/sendjudglst/V006[1]");
- model.removeNodeset("/root/init/baseinfo/chestjudglst/V007[1]");
-
- model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
- model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
- model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
- model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
- model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
- model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
- model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
- model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
- model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
- model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
-
- // 건진구분 조회
- if(m_vHealexamflag == "C") {
- copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/chedetlflaglst/A0069", "replace");
- }else {
- copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/ghedetlflaglst/A0070", "replace");
- }
-
- if (m_vHealexamstatflag != "" ) {
- if (m_vHealexamstatflag == "1") {
- model.setValue("/root/send/inqrflag","F");
- model.toggle("case_med");
- btn_med.dispatch("onclick");
- } else if (m_vHealexamstatflag == "2") {
- model.setValue("/root/send/inqrflag","G");
- model.toggle("case_prnt");
- btn_prnt.dispatch("onclick");
- }
- }
-
- //판정의조회
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
- model.setValue("/root/init/send/srchstatflag", "1");
- model.makeValue("/root/send/srchdrflag" , "J" );
- submit("TRAHA03133");
- copyNodesetType("/root/init/baseinfo/judgdrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
-
- // 진찰의 조회
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
- model.makeValue("/root/send/srchdrflag" , "M" );
- submit("TRAHA03133");
- copyNodesetType("/root/init/baseinfo/meddrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
-
- /**===================================================================================
- @desc : 판정입력대상자 가져오기
- @param : 건진구분/건진일자/환자id별 조회
- =====================================================================================*/
- function fGetJudgPatList(){
- openLoadingBar("판정 대상 건진자리스트") ;//처리중 화면을 오픈한다.
- model.removeNodeset(grd_judgpatlst.nodeset);
- //model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
- model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
- model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
- model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
- model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
- model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")));
- model.setValue("/root/send/srchstatflag" , model.getValue(cmb_statflag.attribute("ref")));
-
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
- submit("TRAHA04411");
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- /**===================================================================================
- @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
- @param : healexamflag, pid, rsrvdd, rsrvno
- =====================================================================================*/
- function fGetJudgInfo(){
-
- var idx = grd_judgpatlst.row;
- if( idx < 1) return ;
-
- var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
- if( vPid == "" ) return ;
-
- //tab이동
- fInit(true);
-
- var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
- var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
- var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
- var vJudgStat = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("judgstat"));
- var vHealexamFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamflag"));
- var vHealexamDetlFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamdetlflag"));
- var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
- var vSex = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex"));
- var vAge = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age"));
- var vPkgnm = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pkgnm"));
- var vHopedd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hopedd"));
-
- cmb_srchhealexamdetlflag2.value = vHealexamDetlFlag
- model.setValue(ipt_srchpid2.attribute("ref"), vPid );
- model.setValue(ipt_srchpnm2.attribute("ref"), grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
- model.setValue(opt_sex.attribute("ref"), vSex);
- model.setValue(opt_age.attribute("ref"), vAge);
- model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
- model.setValue(cmb_srchrsrvdd.attribute("ref") , vRsrvdd);
- model.setValue("/root/send/inqrflag", "F");
-
- copyNodesetType("/root/init/send/info" , grd_judgpatlst.nodeset + "[" + idx + "]" , "replace");
-
- model.setValue("/root/send/inqrflag","G");
- model.toggle("case_prnt");
-
- btn_judg.dispatch("onclick");
- btn_judg.refresh();
-
- // if(vJudgStat == "0") { // 판정대기
- // btn_judgtab1.dispatch("onclick");
- // }else if(vJudgStat == "1") { // 1차판정
- // btn_judgtab1.dispatch("onclick");
- // }else if(vJudgStat == "2") { // 2차판정
- // btn_judgtab2.dispatch("onclick");
- // }
- //해당환자의 건진history조회
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
-
- //화면상단 환자정보 조회
- //ahafSetScreenTopPatInfo( vPid , vOrdDD , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno")) );
- model.refresh();
-
- // 결과 판정값 체크
- // fRsltJudgChk();
- //var nodeList = instance1.selectNodes("/root/temp/histlst/item[orddd='"+ vOrdDD + "' and pid='" + vPid + "' and cretno='"+ vCretno + "']" );
- var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
- var nodelist = instance1.selectNodes(sNd);
- for(var i=0; i < nodelist.length; i++) {
- var desPid = nodelist.item(i).pid.text;
- var desOrd = nodelist.item(i).orddd.text;
- var desCretno = nodelist.item(i).cretno.text;
- if(desPid == vPid && desOrd == vOrdDD && desCretno == vCretno) {
- cmb_srchrsrvdd.selected = true;
- fGetJudgDetlInfo( vRsrvdd, vRsrvno , vPkgnm, vPid, vOrdDD , vCretno );
- break;
- }
- }
- }
-
- /**===================================================================================
- @desc : 판정정보상세내역 조회
- @param : healexamflag, rsrvdd, rsrvno , instcd
- =====================================================================================*/
- function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
-
- grp_answ.visible = false;
-
- model.setValue("/root/send/srchhealexamflag" ,m_vHealexamflag );
- model.setValue("/root/send/srchhealexamdetlflag" ,model.getValue(cmb_srchhealexamdetlflag.attribute("ref")) );
- model.setValue("/root/init/send/srchhealexamdetlflag2" ,model.getValue("/root/init/send/info/healexamdetlflag") );
- model.setValue("/root/send/srchrsrvdd" ,vRsrvdd );
- model.setValue("/root/send/srchrsrvno" ,vRsrvno );
- model.setValue("/root/send/srchinstcd" ,getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/srchpid" ,vPid );
- model.setValue("/root/send/srchorddd" ,vOrdDD );
- model.setValue("/root/send/srchcretno" ,vCretno );
- model.setValue("/root/init/send/srchpkgnm" ,vPkgnm);
- openLoadingBar("판정 정보") ;//처리중 화면을 오픈한다.
-
- var ret = submit("TRAHA04413");
-
- // 결과 판정값 체크
- fRsltJudgChk();
-
- var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" + "판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "단위" + "^" + "기준" ;
-
- grd_rsltlst.caption = vRsltCaption ;
-
- // 판정정보 조회
- fGetJudglst("A");
-
- // 진찰내역 조회
- fGetMedlst();
- closeLoadingBar() ;//처리중 화면을 close 한다.
-
- /*
- if( ret == true ){
- var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
-
- if( retNode != null ){
- model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
- }
- }
-
- // 판정의 체크
- var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); // 판정등록한 판정의
- var logJudgDr = model.getValue("/root/hidden/judgdr"); // 로그인 한 판정의
-
- if (judgDr == "") {
- // 등록한 판정의가 없을경우
- if(logJudgDr != "") {
- // 로그인 한 판정의가 있을 경우
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
- } else {
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
- }
- } else {
- // 등록 된 판정의와 로그인 한 판정의가 다를 경우
- if(judgDr != logJudgDr) {
- if(logJudgDr != "") {
- // 로그인한 판정의가 존재할 경우
- var judgDrNm = "";
- var logJudgDrNm = ""
- // 이름 찾기
- for(var i=0; i < cmb_judgdr.length; i++) {
- if(cmb_judgdr.item(i).value == judgDr ) { judgDrNm = cmb_judgdr.item(i).label};
- if(cmb_judgdr.item(i).value == logJudgDr ) {logJudgDrNm = cmb_judgdr.item(i).label};
- }
- var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
- if(vb == "6") {
- // Yes
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
- }
- }
- }
- }
- */
-
- model.refresh();
- }
-
- /**===================================================================================
- @desc : 판정정보상세내역 조회
- =====================================================================================*/
- function fSetJugeInqr() {
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judginqr");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/apntinqr");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/medinqr");
-
- model.resetInstanceNode("/root/main/judgdetl/judginfo/answ");
-
- // 판정
- copyNodesetType("/root/main/judgdetl/judginfo/judginqr" , "/root/temp/judgdetl/judginfo/judginqr" , "replace");
-
- // 문진
- copyNodesetType("/root/main/judgdetl/judginfo/apntinqr" , "/root/temp/judgdetl/judginfo/apntinqr" , "replace");
-
- // 진찰
- copyNodesetType("/root/main/judgdetl/judginfo/medinqr" , "/root/temp/judgdetl/judginfo/medinqr" , "replace");
-
- //판정문진 답변코드
- copyNodesetType("/root/main/judgdetl/judginfo/answ" , "/root/temp/judgdetl/judginfo/answ" , "replace");
- fSetJudgInqrStat();
-
- }
- /**===================================================================================
- @desc : 판정정보상세내역 조회
- =====================================================================================*/
- function fSetJudgInfo() {
- // 판정내역
- var judgstat = model.getValue("/root/temp/judgdetl/judginfo/judg/judgstat");
- var judgflag1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag1");
- var judgcnts1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts1");
- var judgflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag2");
- var judgcnts2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts2");
- var judgchestflag = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag");
- var judgchestflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag2");
-
-
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
- model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
- if(judgflag1 != "") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag" , judgflag1);
- if(judgflag1 == "A") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" , judgcnts1);
- }else if(judgflag1 == "B") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" , judgcnts1);
- }
- }
-
- if(judgflag2 != "") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgflag" , judgflag2);
- if(judgflag2 == "A") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" , judgcnts2);
- }else if(judgflag2 == "B") {
- model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" , judgcnts2);
- }
- }
-
- // 흉부촬영 판정 등록
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag" , judgchestflag );
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2" , judgchestflag2 );
-
- if(judgstat == "0") { // 판정
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
- // btn_judgtab1.selected = true;
- // model.toggle("case_judg1");
- // btn_judg1.disabled = false;
- // btn_judg2.disabled = true;
- }else if(judgstat == "1") { // 1차 판정
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
- model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
- // btn_judgtab1.selected = true;
- // model.toggle("case_judg1");
- // btn_judg1.disabled = false;
- // btn_judg2.disabled = false;
- }else if(judgstat =="2") { // 2차판정
- model.setValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd2"));
- model.setValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
- // btn_judgtab2.selected = true;
- // model.toggle("case_judg2");
- // btn_judg1.disabled = false;
- // btn_judg2.disabled = false;
- }
- }
-
-
- /**===================================================================================
- @desc : 판정내역 조회
- @param : 판정저장 : J 판정문진저장 : I 전체 : A
- =====================================================================================*/
- function fGetJudglst(vFlag) {
-
- if(submit("TRAHA04421")) {
- if(vFlag == "A" || vFlag == "I") {
- fSetJugeInqr();
- }
- if(vFlag == "A" || vFlag == "J") {
- fSetJudgInfo();
- }
- }
-
- // if(submit("TRAHA04412")) {
- // if(vFlag == "A" || vFlag == "I") {
- // fSetJugeInqr();
- // }
- // if(vFlag == "A" || vFlag == "J") {
- // fSetJudgInfo();
- // }
- // }
- }
- /**===================================================================================
- @desc : 진찰내역 조회
- =====================================================================================*/
- function fGetMedlst() {
- submit("TRAHA04414");
- var cnt = getNodesetCount("/root/main/judgdetl/medinfo/item");
-
- if (cnt == 0) {
- model.makeValue("/root/main/judgdetl/medinfo/item/meddd", getCurrentDate());
- model.makeValue("/root/main/judgdetl/medinfo/item/medtm", getCurrentTime().substring(0,4));
- model.makeValue("/root/main/judgdetl/medinfo/item/meddrid", "");
- model.makeValue("/root/main/judgdetl/medinfo/item/remedyn", "N");
- model.makeValue("/root/main/judgdetl/medinfo/item/execflag", "N");
- }
-
- }
-
- /**===================================================================================
- @desc : 판정문진의 답변코드 예문화면을 보이게 한다.
- =====================================================================================*/
- function fSetAnswVisible(vGrd) {
- var idx = vGrd.row;
-
- var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
- var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
- var answcdflag = vGrd.valueMatrix(idx , vGrd.colRef("answcdflag"));
- var inqrflag = model.getValue("/root/send/inqrflag");
-
- if(getNodesetCount("/root/main/judgdetl/judginfo/answ") < 1 ) {
- grp_answ.visible = false;
- return;
- }
- model.removeNodeset(grd_answlst.nodeset);
- var nodeList = instance1.selectNodes("/root/main/judgdetl/judginfo/answ[judginqrcd = '" + judginqrcd + "' and inqrflag = '" + inqrflag + "' ]");
- if(nodeList.length < 1) {
- grp_answ.visible = false;
- return;
- }
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode( "/root/hidden/answlst", rCSV ,"item");
- grd_answlst.refresh();
- if(answcdflag == "O" && nodeList.length > 0) {
- grp_answ.visible = true;
- } else {
- grp_answ.visible = false;
- }
- }
- /**=========================================================================================================================
- * 선택형 진찰문진 입력
- ===========================================================================================================================*/
- function fSetChoiAnsw(vGrd) {
- var idx = vGrd.row;
- var answcdflag = vGrd.valueMatrix( idx , vGrd.colRef("answcdflag") );
- var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
- var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
- if(answcdflag == "O") {
-
- for(var i=1; i<=grd_answlst.rows; i++) {
- var inqrcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("judginqrcd"));
- var answcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcd"));
- var answcnts = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcnts"));
- if(inqrcd == judginqrcd && answcd == judgrsltcnts ) {
-
- vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcd")) = answcd;
- vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts")) = answcnts;
- grp_answ.visible = false ;
- break;
- }
- }
- }
- }
- /**=========================================================================================================================
- * 판정문진 입력상태 셋팅
- ===========================================================================================================================*/
- function fSetJudgInqrStat() {
- grd_judginqrlst.refresh();
- grd_judginqrlst.clearStatus();
- for(var i=1; i <= grd_judginqrlst.rows; i++ ) {
- var stat = grd_judginqrlst.valueMatrix(i , grd_judginqrlst.colRef("stat"));
- if(stat == "i") {
- grd_judginqrlst.rowStatus(i) = 1;
- }
- }
-
- grd_apntinqrlst.refresh();
- grd_apntinqrlst.clearStatus();
- for(var i=1; i <= grd_apntinqrlst.rows; i++ ) {
- var stat = grd_apntinqrlst.valueMatrix(i , grd_apntinqrlst.colRef("stat"));
- if(stat == "i") {
- grd_apntinqrlst.rowStatus(i) = 1;
- }
- }
-
- grd_medinqrlst.refresh();
- grd_medinqrlst.clearStatus();
- for(var i=1; i <= grd_medinqrlst.rows; i++ ) {
- var stat = grd_medinqrlst.valueMatrix(i , grd_medinqrlst.colRef("stat"));
- if(stat == "i") {
- grd_medinqrlst.rowStatus(i) = 1;
- }
- }
- }
- /**=========================================================================================================================
- * 판정문진의 입력서식을
- ===========================================================================================================================*/
- function fJudgInqrPrint() {
-
-
- var cnt = getNodesetCount("/root/main/judgdetl/rsltlst/item");
- var testcd = "";
- var testnm= "";
- var codenm= "";
- var rslt1 = "";
- var rsltformcd = "";
- rsltformcd = model.getValue("/root/init/send/info/rsltformcd");
- model.makeValue("/root/printinfo/printlist/item/pid", model.getValue("/root/init/send/info/pid"));
- model.makeValue("/root/printinfo/printlist/item/hngnm", model.getValue("/root/init/send/info/hngnm"));
- model.makeValue("/root/printinfo/printlist/item/rgstno1", model.getValue("/root/init/send/info/rgstno1"));
- model.makeValue("/root/printinfo/printlist/item/rgstno2", model.getValue("/root/init/send/info/rgstno2"));
- model.makeValue("/root/printinfo/printlist/item/sex", model.getValue("/root/init/send/info/sex"));
- model.makeValue("/root/printinfo/printlist/item/age", model.getValue("/root/init/send/info/age"));
- model.makeValue("/root/printinfo/printlist/item/hometel", model.getValue("/root/init/send/info/hometel"));
- model.makeValue("/root/printinfo/printlist/item/mpphontel", model.getValue("/root/init/send/info/mpphontel"));
- model.makeValue("/root/printinfo/printlist/item/pataddr", model.getValue("/root/init/send/info/pataddr"));
- model.makeValue("/root/printinfo/printlist/item/judgdrnm", cmb_judgdr.label);
- model.makeValue("/root/printinfo/printlist/item/judgdrengnm", model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrengnm"));
- model.makeValue("/root/printinfo/printlist/item/licnsno", model.getValue("/root/temp/judgdetl/judginfo/judg/licnsno"));
- model.makeValue("/root/printinfo/printlist/item/judgdeptnm", model.getValue("/root/temp/judgdetl/judginfo/judg/judgdeptnm"));
- model.makeValue("/root/printinfo/printlist/item/orddd", model.getValue("/root/init/send/info/orddd"));
- model.makeValue("/root/printinfo/printlist/item/hopedd", model.getValue("/root/init/send/info/hopedd"));
- model.makeValue("/root/printinfo/printlist/item/judgdd", model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
- model.makeValue("/root/printinfo/printlist/item/instnm", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K02']/cdnm")); // 의료기관명
- model.makeValue("/root/printinfo/printlist/item/enginstnm1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E01']/cdnm")); // 의료센터(영문)
- model.makeValue("/root/printinfo/printlist/item/enginstnm2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E02']/cdnm")); // 병원명(영문)
- model.makeValue("/root/printinfo/printlist/item/engaddr1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E03']/cdnm")); // 주소1(영문)
- model.makeValue("/root/printinfo/printlist/item/engaddr2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E04']/cdnm")); // 주소2(영문)
- model.makeValue("/root/printinfo/printlist/item/addr", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K04']/cdnm")); // 주소
- model.makeValue("/root/printinfo/printlist/item/tel", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='PV3']/cdnm")); // 전화번호
- model.makeValue("/root/printinfo/printlist/item/fax", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='VF2']/cdnm")); // FAX
-
- var prntCnt = getNodesetCount("/root/init/baseinfo/printinfolist/R002");
- // 검사 결과
- for(var i=1; i <= cnt; i++ ) {
- testcd = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testcd");
- testnm = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testnm");
- rslt1 = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rslt1");
- rsltunit = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rsltunit");
-
- var chngChk = true;
-
- for(var x=1; x <= prntCnt; x++ ) {
- var cmt = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cmt");
- var cdid = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cdid");
- if(cmt == testcd) {
- chngChk == false;
- model.makeValue("/root/printinfo/printlist/item/" + cdid, rslt1);
- model.makeValue("/root/printinfo/printlist/item/" + cdid + "nm", testnm);
- model.makeValue("/root/printinfo/printlist/item/" + cdid + "rsltunit", rsltunit);
- }
- }
- if(chngChk) {
- codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
-
- model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
- model.makeValue("/root/printinfo/printlist/item/" + testcd + "nm", testnm);
- model.makeValue("/root/printinfo/printlist/item/" + testcd + "rsltunit", rsltunit);
- }
- }
-
- // 진찰 문진
- cnt = getNodesetCount("/root/main/judgdetl/judginfo/medinqr");
- for(var i=1; i <= cnt; i++ ) {
- testcd = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + i + "]/judginqrcd");
- rslt1 = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + i + "]/judgrsltcnts");
- codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
-
- if (codenm != "") {
- model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
- }
- }
-
- // 판정문진
- cnt = getNodesetCount("/root/main/judgdetl/judginfo/judginqr");
- for(var i=1; i <= cnt; i++ ) {
- testcd = model.getValue("/root/main/judgdetl/judginfo/judginqr[" + i + "]/judginqrcd");
- rslt1 = model.getValue("/root/main/judgdetl/judginfo/judginqr[" + i + "]/judgrsltcnts");
- codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
-
- if (codenm != "") {
- model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
- }
- }
-
- // 사인 이미지 조회
- model.makeValue("/root/send/srchsignedid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
-
- if(submit("TRAHA03174")) {
- model.makeNode("/root/printinfo/printlist/item/signdata");
- setImageRefInstance("/root/hidden/signinfo/img/singdata");
- setImageRefInstance("/root/printinfo/printlist/item/signdata");
-
- copyNodesetType("/root/printinfo/printlist/item/signdata" , "/root/hidden/signinfo/img/signdata" , "replace" );
-
- setImageRefInstance("/root/printinfo/printlist/item/signdata");
- }
-
- setParameter("reportprintyn", ""); //출력여부 확인하기
- if (rsltformcd != "") {
- exeReportPreview(rsltformcd, "XMLSTR", "/root/printinfo/printlist/item", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- submit("TXAHA04415");
- }
- }
- // setParameter("reportprintyn", ""); //출력여부 확인하기
- // //판정내역
- // var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
- //
- // if( rsrvdd == "") {
- // messageBox("판정대상내역을 ", "C002");
- // model.setFocus("cmb_srchrsrvdd");
- // return ;
- // }
- //
- // if(submit("TRAHA04418")) {
- // var brthArea = model.getValue("/root/main/prntinfo/prnt/pat/brthareacnts");
- //
- // if(brthArea == "PP") { // 필리핀
- // exeReportPreview("RPAHR04412", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- // }else if(brthArea == "ETC"){ // 기타해외
- // exeReportPreview("RPAHR04411", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- // }
- //
- // if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- // submit("TXAHA04415");
- // }
- // }
- }
- /********************************************************************************************************************************************************************/
- /**===================================================================================
- @desc : 종합판정입력
- @param : 판정내역 및 질환코드내역
- =====================================================================================*/
- function fSaveJudgInqr(){
-
- //판정내역
- var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
-
- if( rsrvdd == "") {
- messageBox("판정대상내역을 ", "C002");
- model.setFocus("cmb_srchrsrvdd");
- return ;
- }
- if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
-
- copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
- model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
- if(submit("TXAHA04411")) {
- fGetJudglst("I");
- }
-
- }
- /*=====================================================================================
- @desc : 환자번호로 건진자 정보 가져오기...
- =====================================================================================*/
- function fGetPatinfoWithPid(sPid ) {
- if( sPid == "" ) return ;
- if(cmb_srchhealexamdetlflag2.value == "") {
- cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
- }
- if( ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2" ) == true ) {
- model.setValue(ipt_srchpid2.attribute("ref") ,sPid);
- model.setValue(ipt_srchpnm2.attribute("ref") ,model.getValue("/root/temp/patinfo/item/hngnm"));
- model.setValue(opt_sex.attribute("ref") ,model.getValue("/root/temp/patinfo/item/sex"));
- model.setValue(opt_age.attribute("ref") ,model.getValue("/root/temp/patinfo/item/age"));
- //해당환자의 건진history조회
- ahafGetHistList2(sPid, cmb_srchhealexamdetlflag2.value , "E");
- }
- }
- /*=====================================================================================
- @desc : 로그인 된 사람이 판정의 경우 등록
- =====================================================================================*/
- function fSetJudgDr() {
- var licnsno = getUserInfo("licnsno");
- var selChk = false;
- for(var i=0; i < cmb_srchjudgdrid.length; i++) {
- // 판정의 의사번호가 있을 경우 선택
- if(cmb_srchjudgdrid.item(i).value == licnsno) {
- cmb_srchjudgdrid.select(i);
- model.makeValue("/root/hidden/judgdr" , licnsno);
- selChk = true;
- }
- }
- //선택된 것이 없으면 default
- if(selChk == false) {
- cmb_srchjudgdrid.select(0);
- }
- }
-
- /**==================================================================================================================
- @author : 손범성
- @version :2007-12-17
- @desc : 결과 판정을 체크한다.
- @param :
- ====================================================================================================================*/
- function fRsltJudgChk() {
- for(var i=1; i <= grd_rsltlst.rows; i++ ) {
- var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
- var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
- var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
- // 첫번째 건진 판정
- if(judgrsltcnts1 != "") {
- if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
- if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
- }
-
- // 두번째 건진 판정
- if(judgrsltcnts2 != "") {
- if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
- if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
- }
-
- // 세번째 건진 판정
- if(judgrsltcnts3 != "") {
- if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
- if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
- }
- }
- for ( var i = 1; i <= grd_rslttextlst.rows; i++ ) {
- grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
-
- var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd")).substring(0,4);
- var nowdd = cmb_srchrsrvdd.value.substring(0,4);
-
- if ( olddd == nowdd ) {
- grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
- }
- }
- /**==================================================================================================================
- @author : 손범성
- @version :2008-07-04
- @desc : 결과 판정을 체크한다.
- @param :
- ====================================================================================================================*/
- function fSetColRsltText(vRow) {
- if( vRow < 1 ) return ;
- var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset") );
- if( nodeList == null ) return ;
- if( nodeList.length < 1 ) return ;
-
- model.makeNode(tar_rsltcnts1.attribute("ref"));
- model.makeNode(tar_rsltcnts2.attribute("ref"));
- model.makeNode(tar_rsltcnts3.attribute("ref"));
- model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text );
- model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text );
- model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text );
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;2,757;2,939;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:14px; ">진찰/판정</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_pat">
- <line id="line6" class="line_1" style="x1:5px; y1:105px; x2:1182px; y2:105px; "/>
- <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption13" class="search_name" style="left:230px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
- <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1113px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </button>
- <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:319px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:439px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </input>
- <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:91px; top:36px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:11px; top:35px; width:89px; height:17px; ">판정의 :</caption>
- <input id="ipt_pnm" ref="/root/init/send/srchpnm" class="input_default" style="left:781px; top:10px; width:105px; height:19px; "/>
- <input id="ipt_pid" ref="/root/init/send/srchpid" class="input_default" style="left:650px; top:10px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
-
- model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
- model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
- model.refresh();
- if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
- fGetJudgPatList();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:560px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption18" class="search_no_b" style="left:424px; top:11px; width:12px; height:17px; ">~</caption>
- <button id="btn_srchpat" class="icon_search" style="left:759px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_statflag" ref="/root/init/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:990px; top:10px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>판정대기</label>
- <value>1</value>
- </item>
- <item>
- <label>판정완료</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:151px; height:13px; ">대기자리스트</caption>
- <caption id="caption31" class="search_name" style="left:905px; top:20px; width:97px; height:17px; ">상태구분 :</caption>
- <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="상태^신검일자^한글이름^영문이름^등록번호^비자연번^성별^집 전화번호^휴대전화번호^환자주소^나이^패키지명^패키지코드^비고^rsrvdd^rsrvno^cretno^brthareacnts^orddd^rsrvtm^rrgstno1^rrgstno2^healexamflag^healexamdetlflag^judgdd^judgdrid^judgdd2^judgdrid2^judgstat" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 50, 100, 100, 100, 50, 200, 100, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:110px; width:1177px; height:596px; ">
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="hngnm"/>
- <col ref="engnm" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="visano" visibility="hidden"/>
- <col ref="sex"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="pataddr"/>
- <col ref="age"/>
- <col ref="pkgnm"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="acptremcnts" type="input"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="brthareacnts" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="rsrvtm" visibility="hidden"/>
- <col ref="rgstno1" visibility="hidden"/>
- <col ref="rgstno2" visibility="hidden" style="left:1870px; top:23px; width:100px; height:23px; "/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="judgdd" visibility="hidden"/>
- <col ref="judgdrid" visibility="hidden"/>
- <col ref="judgdd2" visibility="hidden"/>
- <col ref="judgdrid2" visibility="hidden"/>
- <col ref="judgstat" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetJudgInfo();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_judg" selected="true">
- <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2007^판정^2006^판정^2005^판정^단위^기준^testcd^execprcpuniqno^prcpdd" colsep="^" colwidth="99, 62, 30, 59, 30, 56, 30, 53, 87, 50 , 50 , 50" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
- <col ref="testnm"/>
- <col ref="rslt1"/>
- <col ref="judgrsltcnts1" style="text-align:center; "/>
- <col ref="rslt2"/>
- <col ref="judgrsltcnts2" style="text-align:center; "/>
- <col ref="rslt3"/>
- <col ref="judgrsltcnts3" style="text-align:center; "/>
- <col ref="rsltunit"/>
- <col ref="stndval"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
- model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rslttextlst" nodeset="/root/main/judgdetl/rsltlst/itemtext" caption="처방명칭^testcd^caption1^caption2^execprcpuniqno^prcpdd^rsrvdd" colsep="^" colwidth="197, 100, 100, 100, 50, 50, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:522px; width:233px; height:183px; ">
- <col ref="testnm"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="judgrslt" visibility="hidden"/>
- <col ref="rslt1" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetColRsltText(grd_rslttextlst.row);
- model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
- model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- var idx = grd_rslttextlst.row;
- if(event.keyCode == 38 && idx > 0) {
- fSetColRsltText( idx - 1 );
- }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
- fSetColRsltText( idx + 1 );
- }
- ]]>
- </script>
- </datagrid>
- <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
- <caption id="cap_year1" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd1" class="cell_1" format="yyyy" roundmode="round" style="left:-2px; top:1px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2006]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts1.value, cap_year1.value);
- ]]>
- </script>
- </caption>
- <caption id="cap_year2" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd2" class="cell_1" format="yyyy" style="left:-2px; top:62px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2005]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts2.value, cap_year2.value);
- ]]>
- </script>
- </caption>
- <caption id="cap_year3" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd3" class="cell_1" format="yyyy" style="left:-2px; top:123px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2004]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts3.value, cap_year3.value);
- ]]>
- </script>
- </caption>
- <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
- <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
- <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
- <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
- <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
- <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
- </group>
- <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
- <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:14px; ">진찰/판정</caption>
- <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
- <output id="opt_pkgnm" ref="/root/init/send/srchpkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:478px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
- <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption22" class="search_name" style="left:11px; top:8px; width:89px; height:17px; ">건진종류 :</caption>
- <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
- if( vPid != "" ) {
- //해당환자의 건진history조회
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
- cmb_srchrsrvdd.select(0);
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:443px; y1:10px; x2:443px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_srchpnm2" ref="/root/init/send/srchpnm2" class="input_default" style="left:232px; top:32px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search2","DOMActivate" );
- ]]>
- </script>
- </input>
- <input id="ipt_srchpid2" ref="/root/init/send/srchpid2" class="input_default" style="left:101px; top:32px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- //건진자 정보 가져오기...
- fGetPatinfoWithPid(ipt_srchpid2.currentText);
- }
- ]]>
- </script>
- </input>
- <caption id="caption26" class="search_name" style="left:11px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:11px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
- <select1 id="cmb_srchrsrvdd" ref="/root/init/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:101px; top:55px; width:325px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/histlst/item">
- <label ref="hopedd"/>
- <value ref="rsrvdd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var idx = cmb_srchrsrvdd.mouseRow;
- if( idx < 0) return ;
-
- var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
- var nodelist = instance1.selectNodes(sNd);
- if( nodelist == null ) return ;
- if(idx >= nodelist.length) idx = 0;
-
- var sRsrvdd = nodelist.item(idx).rsrvdd.text;
- var sRsrvno = nodelist.item(idx).rsrvno.text;
- var sPkgnm = nodelist.item(idx).pkgnm.text;
- var sPid = nodelist.item(idx).pid.text;
- var sOrdDD = nodelist.item(idx).orddd.text;
- var sCretno = nodelist.item(idx).cretno.text;
-
- copyNodesetType("/root/init/send/info" , sNd + "[" + (idx + 1) + "]" , "replace");
- fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
- ]]>
- </script>
- </select1>
- <output id="opt_sex" ref="/root/init/send/srchsex" class="output_fix" style="left:350px; top:32px; width:36px; height:19px; "/>
- <output id="opt_age" ref="/root/init/send/srchage" class="output_fix" style="left:389px; top:32px; width:36px; height:19px; "/>
- <button id="btn_search2" class="icon_search" style="left:210px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "Y", "/root/temp/patinfo/item");
- model.setValue("/root/init/send/srchpid2" , model.getValue("/root/temp/patinfo/item/pid"));
- model.setValue("/root/init/send/srchpnm2" , model.getValue("/root/temp/patinfo/item/hngnm"));
- model.setValue("/root/init/send/srchsex" , model.getValue("/root/temp/patinfo/item/sex"));
- model.setValue("/root/init/send/srchage" , model.getValue("/root/temp/patinfo/item/age"));
-
-
- var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
- if( vPid != "" ) {
- //해당환자의 건진history조회
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
- <input id="ipt_meddd" ref="/root/main/judgdetl/medinfo/item/meddd" class="input_essential" inputtype="date" style="left:614px; top:8px; width:95px; height:19px; "/>
- <line id="line23" class="line_3" style="x1:552px; y1:5px; x2:1184px; y2:5px; "/>
- <select1 id="cmb_meddr" ref="/root/main/judgdetl/medinfo/item/meddrid" class="combo_essential" appearance="minimal" style="left:760px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/meddrlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.property("judgdr") = cmb_judgdr.value;
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="cell_1" style="left:712px; top:6px; width:45px; height:23px; vertical-align:middle; ">진찰의</caption>
- <caption id="caption8" class="cell_1" style="left:552px; top:6px; width:59px; height:23px; vertical-align:middle; ">진찰일자</caption>
- <switch id="switch2" style="left:552px; top:60px; width:630px; height:645px; ">
- <case id="case_med" style="left:0px; top:0px; width:630px; height:4523px; ">
- <datagrid id="grd_medinqrlst" nodeset="/root/main/judgdetl/judginfo/medinqr" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
- <col ref="judginqrnm"/>
- <col ref="judgrsltcnts" type="input"/>
- <col ref="judgremcnts" type="input"/>
- <col ref="judginqrflag" visibility="hidden"/>
- <col ref="judginqrcd" visibility="hidden"/>
- <col ref="judgrsltcd" visibility="hidden"/>
- <col ref="answcdflag" visibility="hidden"/>
- <col ref="stat" visibility="hidden"/>
- <col ref="lrgrsltyn" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell()) {
- if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
- fSetChoiAnsw(grd_medinqrlst);
- grd_medinqrlst.row = grd_medinqrlst.row + 1;
- grd_medinqrlst.dispatch("onrowchanged");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_medinqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_medinqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
- grd_medinqrlst.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(isDataCell()) {
- if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgremcnts")) {
- if(event.keyCode == 13) {
- grd_medinqrlst.col = grd_medinqrlst.colRef("judgrsltcnts");
- grd_medinqrlst.row = grd_medinqrlst.row +1;
- grd_medinqrlst.editCell();
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_prnt" selected="true">
- <datagrid id="grd_judginqrlst" nodeset="/root/main/judgdetl/judginfo/judginqr" caption="판정명^판정값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
- <col ref="judginqrnm"/>
- <col ref="judgrsltcnts" type="input"/>
- <col ref="judgremcnts" type="input"/>
- <col ref="judginqrflag" visibility="hidden"/>
- <col ref="judginqrcd" visibility="hidden"/>
- <col ref="judgrsltcd" visibility="hidden"/>
- <col ref="answcdflag" visibility="hidden"/>
- <col ref="stat" visibility="hidden"/>
- <col ref="lrgrsltyn" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell()) {
- if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
- fSetChoiAnsw(grd_judginqrlst);
- grd_judginqrlst.row = grd_judginqrlst.row + 1;
- grd_judginqrlst.dispatch("onrowchanged");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_judginqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_judginqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
- grd_judginqrlst.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(isDataCell()) {
- if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgremcnts")) {
- if(event.keyCode == 13) {
- grd_judginqrlst.col = grd_judginqrlst.colRef("judgrsltcnts");
- grd_judginqrlst.row = grd_judginqrlst.row +1;
- grd_judginqrlst.editCell();
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_inqr">
- <datagrid id="grd_apntinqrlst" nodeset="/root/main/judgdetl/judginfo/apntinqr" caption="문진명^문진값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
- <col ref="judginqrnm"/>
- <col ref="judgrsltcnts" type="input"/>
- <col ref="judgremcnts" type="input"/>
- <col ref="judginqrflag" visibility="hidden"/>
- <col ref="judginqrcd" visibility="hidden"/>
- <col ref="judgrsltcd" visibility="hidden"/>
- <col ref="answcdflag" visibility="hidden"/>
- <col ref="stat" visibility="hidden"/>
- <col ref="lrgrsltyn" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell()) {
- if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
- fSetChoiAnsw(grd_apntinqrlst);
- grd_apntinqrlst.row = grd_apntinqrlst.row + 1;
- grd_apntinqrlst.dispatch("onrowchanged");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_apntinqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
- fSetAnswVisible(grd_apntinqrlst);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
- grd_apntinqrlst.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(isDataCell()) {
- if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgremcnts")) {
- if(event.keyCode == 13) {
- grd_apntinqrlst.col = grd_apntinqrlst.colRef("judgrsltcnts");
- grd_apntinqrlst.row = grd_apntinqrlst.row +1;
- grd_apntinqrlst.editCell();
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <line id="line3" class="line_3" style="x1:552px; y1:29px; x2:1184px; y2:29px; "/>
- <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/judg/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:939px; top:8px; width:95px; height:19px; "/>
- <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/judg/judgdrid" class="combo_essential" appearance="minimal" style="left:1085px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/judgdrlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.property("judgdr") = cmb_judgdr.value;
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="cell_1" style="left:1037px; top:6px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
- <caption id="caption10" class="cell_1" style="left:877px; top:6px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
- <button id="btn_med" class="btn_sw" group="tab_2" selected="true" style="left:552px; top:39px; width:80px; height:22px; ">
- <caption>진찰</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/inqrflag","F");
- model.toggle("case_med");
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn_sw" group="tab_2" selected="true" style="left:632px; top:39px; width:80px; height:22px; ">
- <caption>판정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/inqrflag","G");
- model.toggle("case_prnt");
- ]]>
- </script>
- </button>
- <group id="grp_answ" visibility="hidden" style="left:275px; top:185px; width:260px; height:195px; ">
- <datagrid id="grd_answlst" nodeset="/root/hidden/answlst/item" visibility="visible" caption="코드^답안내용^검사코드^문진구분" colsep="^" colwidth="30, 198, 46, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:250px; height:185px; ">
- <col ref="answcd"/>
- <col ref="answcnts"/>
- <col ref="judginqrcd" visibility="hidden"/>
- <col ref="inqrflag" visibility="hidden"/>
- </datagrid>
- </group>
- <button id="button4" class="btn_sw" group="tab_2" selected="true" style="left:712px; top:39px; width:80px; height:22px; ">
- <caption>문진</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/inqrflag","E");
- model.toggle("case_inqr");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_patlst" class="btn_sw" group="tab_1" selected="true" style="left:3px; top:5px; width:105px; height:22px; ">
- <caption>진찰/판정대기자</caption>
- <toggle case="case_pat" ev:event="onclick"/>
- </button>
- <button id="btn_judg" class="btn_sw" group="tab_1" style="left:109px; top:5px; width:105px; height:22px; ">
- <caption>진찰/판정</caption>
- <toggle case="case_judg" ev:event="onclick"/>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_pat.selected == true) {
- fInit(false );
- }else {
- fInit(true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
- <caption>서식출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_judg.selected == true) {
- fJudgInqrPrint();
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter4" style="left:88px; top:5px; width:116px; height:22px; ">
- <caption>발송대기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_judg.selected == true) {
- clearParameter("SMAHA04510_PARAM1");
- clearParameter("SMAHA04510_PARAM2");
- clearParameter("SMAHA04510_PARAM3");
- clearParameter("SMAHA04510_PARAM4");
-
- setParameter ("SMAHA04510_PARAM1", model.getValue("/root/init/send/info/healexamdetlflag") ); // 건진상세구분
- setParameter ("SMAHA04510_PARAM2", model.getValue("/root/init/send/info/hopedd")); // 건진일자
- setParameter ("SMAHA04510_PARAM3", model.getValue("/root/init/send/info/pid")); // 등록번호
- setParameter ("SMAHA04510_PARAM4", model.getValue("/root/init/send/info/brthareacnts")); // 국가코드
-
- modal("SMAHA04510");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter6" style="left:170px; top:5px; width:80px; height:22px; ">
- <caption>재/미검자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMAHA04610");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var inqrflag = model.getValue("/root/send/inqrflag");
-
- var sRsrvdd = model.getValue("/root/init/send/info/rsrvdd");
- var sRsrvno = model.getValue("/root/init/send/info/rsrvno");
- var sPkgnm = model.getValue("/root/init/send/info/pkgnm");
- var sPid = model.getValue("/root/init/send/info/pid");
- var sOrdDD = model.getValue("/root/init/send/info/orddd");
- var sCretno = model.getValue("/root/init/send/info/cretno");
-
- if (inqrflag == "F") {
-
- var meddrid = model.getValue("/root/main/judgdetl/medinfo/item/meddrid");
-
- if(meddrid == "") { // 진찰의 체크
- messageBox("진찰의를 ", "C001");
- return ;
- }
-
- if(messageBox("진찰 정보를" , "Q002") == 6 ) {
-
- model.makeValue("/root/init/send/info/meddd" , model.getValue("/root/main/judgdetl/medinfo/item/meddd"));
- model.makeValue("/root/init/send/info/medtm" , model.getValue("/root/main/judgdetl/medinfo/item/medtm"));
- model.makeValue("/root/init/send/info/meddrid", model.getValue("/root/main/judgdetl/medinfo/item/meddrid"));
- model.makeValue("/root/init/send/info/medseq", model.getValue("/root/main/judgdetl/medinfo/item/medseq"));
- model.makeValue("/root/init/send/info/remedyn", model.getValue("/root/main/judgdetl/medinfo/item/remedyn"));
-
- model.makeValue("/root/init/send/info/inqrflag", inqrflag);
- model.makeValue("/root/init/send/info/execflag", model.getValue("/root/main/judgdetl/medinfo/item/execflag"));
-
- copyNodesetType("/root/send/savedata","/root/init/send/info","replace");
- model.makeValue("/root/send/savedata/savepast" , grd_medinqrlst.getUpdateData() );
-
- if (submit("TXAHA04421")) {
- fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
- }
- }
-
- } else if (inqrflag == "G") {
-
- //판정내역
- var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
-
- if( rsrvdd == "") {
- messageBox("판정대상내역을 ", "C002");
- model.setFocus("cmb_srchrsrvdd");
- return ;
- }
-
- var judgdrid = model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid");
- if(judgdrid == "" || judgdrid == "-") {
- messageBox("판정의사를","C002");
- return;
- }
-
- // var judgflag = model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag");
- // if(judgflag == "") {
- // messageBox("판정구분을","C002");
- // return;
- // }
-
- copyNodesetType("/root/send/savedata", "/root/init/send/info", "replace");
- model.makeValue("/root/send/savedata/judgdd" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
- model.makeValue("/root/send/savedata/judgdrid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
- model.makeValue("/root/send/savedata/judgflag" , "A");
- model.makeValue("/root/send/savedata/judgcnts", "");
-
- // model.makeValue("/root/send/savedata/judgflag" , judgflag);
- // if(judgflag == "A") {
- // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa"));
- // }else if(judgflag == "B") {
- // if(model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb") == "") {
- // messageBox("판정 내용을 입력하세요." , "");
- // return;
- // }
- // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb"));
- // }
- model.makeValue("/root/send/savedata/judgstat" , "1")
-
- if(submit("TXAHA04412")) {
- copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
- model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
-
- if(submit("TXAHA04411")) {
- fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
- }
- }
-
- } else if (inqrflag == "E") {
-
- //판정내역
- var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
-
- if( rsrvdd == "") {
- messageBox("판정대상내역을 ", "C002");
- model.setFocus("cmb_srchrsrvdd");
- return ;
- }
- if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
-
- copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
- model.makeValue("/root/send/savedata/judginqr" , grd_apntinqrlst.getUpdateData());
-
- if(submit("TXAHA04411")) {
- fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
- }
- }
-
- // if(submit("TXAHA04311")) {
- //
- // fGetMedPatList();
- // // 진찰 정보 수정
- // fSetMedInfo();
- //
- // };
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|